{% extends "base_generic.html" %}

{% block content %}
    <h1>已借阅的图书</h1>

    {% if bookinstance_list %}
    <ul>
      {% for bookinst in bookinstance_list %}
      <li class="{% if bookinst.is_overdue %}text-danger{% endif %}">
        <a href="{% url 'book-detail' bookinst.book.pk %}">{{ bookinst.book.title }}</a> (应归还日期: {{ bookinst.due_back }})
      </li>
      {% endfor %}
    </ul>
    {% else %}
      <p>您目前没有借阅任何图书。</p>
    {% endif %}
{% endblock %} 